package com._21cn.product.entity;

import com._21cn.cms.common.Constants;

import java.io.Serializable;
import java.util.Date;

public class CarBusinessSecond extends Car implements Serializable {
	private static final long serialVersionUID = -1L;

    private Integer id = 0;
    private Integer carId = 0;
    private Float totalPrice = 0.0f;
    private Float secondPrice = 0.0f;
    private String minPrice = "";
    private String maxPrice = "";
    private java.util.Date dateOnBoard = null;
    private Float odoMeter;
    private String areaOnBoard;
    private String downPayment;
    private Integer paymentType = Constants.PAYMENT_TYPE_ALL;
    private String monthPay12;
    private String monthPay24;
    private String monthPay36;
    private Integer status = 1;
    private String memo;
    private java.util.Date createTime = new Date();
    private java.util.Date modifyTime = new Date();
    private Car car = new Car();

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }

    public void setId(Integer id) {
        this.id = id;  
    }        
    public Integer getId() {  
        return this.id;  
    }  

    public void setCarId(Integer carId) {  
        this.carId = carId;  
    }        
    public Integer getCarId() {  
        return this.carId;  
    }  

    public void setTotalPrice(Float totalPrice) {  
        this.totalPrice = totalPrice;  
    }        
    public Float getTotalPrice() {  
        return this.totalPrice;  
    }  

    public void setSecondPrice(Float secondPrice) {  
        this.secondPrice = secondPrice;  
    }        
    public Float getSecondPrice() {  
        return this.secondPrice;  
    }  

    public void setMinPrice(String minPrice) {  
        this.minPrice = minPrice;  
    }        
    public String getMinPrice() {  
        return this.minPrice;  
    }  

    public void setMaxPrice(String maxPrice) {  
        this.maxPrice = maxPrice;  
    }        
    public String getMaxPrice() {  
        return this.maxPrice;  
    }  

    public void setDateOnBoard(java.util.Date dateOnBoard) {  
        this.dateOnBoard = dateOnBoard;  
    }        
    public java.util.Date getDateOnBoard() {  
        return this.dateOnBoard;  
    }  

    public void setOdoMeter(Float odoMeter) {
        this.odoMeter = odoMeter;  
    }        
    public Float getOdoMeter() {
        return this.odoMeter;  
    }  

    public void setAreaOnBoard(String areaOnBoard) {  
        this.areaOnBoard = areaOnBoard;  
    }        
    public String getAreaOnBoard() {  
        return this.areaOnBoard;  
    }  

    public void setDownPayment(String downPayment) {  
        this.downPayment = downPayment;  
    }        
    public String getDownPayment() {  
        return this.downPayment;  
    }  

    public void setPaymentType(Integer paymentType) {  
        this.paymentType = paymentType;  
    }        
    public Integer getPaymentType() {  
        return this.paymentType;  
    }  

    public void setMonthPay12(String monthPay12) {  
        this.monthPay12 = monthPay12;  
    }        
    public String getMonthPay12() {  
        return this.monthPay12;  
    }  

    public void setMonthPay24(String monthPay24) {  
        this.monthPay24 = monthPay24;  
    }        
    public String getMonthPay24() {  
        return this.monthPay24;  
    }  

    public void setMonthPay36(String monthPay36) {  
        this.monthPay36 = monthPay36;  
    }        
    public String getMonthPay36() {  
        return this.monthPay36;  
    }  

    public void setStatus(Integer status) {  
        this.status = status;  
    }        
    public Integer getStatus() {  
        return this.status;  
    }  

    public void setMemo(String memo) {  
        this.memo = memo;  
    }        
    public String getMemo() {  
        return this.memo;  
    }  

    public void setCreateTime(java.util.Date createTime) {  
        this.createTime = createTime;  
    }        
    public java.util.Date getCreateTime() {  
        return this.createTime;  
    }  

    public void setModifyTime(java.util.Date modifyTime) {  
        this.modifyTime = modifyTime;  
    }        
    public java.util.Date getModifyTime() {  
        return this.modifyTime;  
    }

    public CarBusinessSecond initCarPledge( Car car){
        if( car!=null ){
            this.car = car;
            this.setName(car.getName());
            this.setNameShort(car.getNameShort());
            this.setKeyword(car.getKeyword());
            this.setFirstPicUrl(car.getFirstPicUrl());
            this.setCarPictureList(car.getCarPictureList());
            this.setBrandId(car.getBrandId());
            this.setBrand(car.getBrand());
            this.setBrandName(car.getBrandName());
            this.setSeriesId(car.getSeriesId());
            this.setSeries(car.getSeries());
            this.setSeriesName(car.getSeriesName());
            this.setOtherIdList(car.getOtherIdList());
            this.setOtherList(car.getOtherList());
            this.setCarPropertyList(car.getCarPropertyList());
            this.setCarPropertyMap(car.getCarPropertyMap());
            this.setDetails(car.getDetails());
        }
        return this;
    }
}